package top.abilities.util.config;

import com.aliyun.oss.OSSClient;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import top.abilities.util.param.AliOssParamVO;

//@Configuration
public class AliOssConfig {
    @Bean
    public OSSClient oSSClient(AliOssParamVO aliOssParamVO){
        OSSClient ossClient=new OSSClient(aliOssParamVO.getApiUrl(),aliOssParamVO.getAccessKeyId(),aliOssParamVO.getAccessKeySecret());
        return ossClient;
    }
}
